package org.management.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
 * 基础实体类
 * @version:1.0
 * @Description: BaseEntity
 * @author: jiangyan
 * @date: 2018年9月20日
 */
@Data
public abstract class BaseEntity implements Serializable {

	private static final long serialVersionUID = 1522097697211079535L;
	
	/**
	 * 主键id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "select uuid()")
	@ApiModelProperty(value = "主键id", name = "id")
	@Column(name="ID")
	private String id;
	
	/**
	 * 创建时间
	 */
	@Column(name="CREATE_TIME")
	@ApiModelProperty(value = " 创建时间", name = "createTime")
	private String createTime;
	
	/**
	 * 创建人
	 */
	@Column(name="CREATE_USER")
	@ApiModelProperty(value = " 创建人", name = "createUser")
	private String createUser;
	
	/**
	 * 最后修改时间
	 *
	 */
	@Column(name="LAST_UPDATE_TIME")
	@ApiModelProperty(value = " 最后修改时间", name = "lastUpdateTime")
	private String lastUpdateTime;
	
	/**
	 * 修改人
	 */
	@Column(name="LAST_UPDATE_USER")
	@ApiModelProperty(value = " 修改人", name = "lastUpdateUser")
	private String lastUpdateUser;
	
	/** 
	 * 备注 
	 */
    @Column(name="REMARK")
    @ApiModelProperty(value = " 备注", name = "remark")
    private String remark;

    /**
     * 是否删除
     */
    @JsonIgnore
	@Column(name="IS_DELETE")
	private Boolean isDelete = false;

}
